import { agencyHttp as http } from '@/services/http';
import type { Limit } from '@/types/api/common';
import type { CashListParamsDTO, CashCheckParamsDTO } from '@/types/api/crm-agency/cash';
// 打款列表
export const getCashList = (payload: { data: CashListParamsDTO; params: Limit }) =>
  http<any>({
    method: 'post',
    url: '/api/cash/list',
    ...payload
  });
// 提现审核
export const cashCheck = (data: CashCheckParamsDTO) =>
  http({
    method: 'post',
    url: '/api/cash/check',
    data
  });
